package com.anolesoft.amljmes.fortysix.service.impl;

import com.anolesoft.amljmes.fortysix.controller.MesBzzZcbldInfoController;
import com.anolesoft.amljmes.fortysix.dto.MesBzzBindDto;
import com.anolesoft.amljmes.fortysix.dto.MesBzzZcbldDto;
import com.anolesoft.amljmes.fortysix.service.info.MesBzzZcbldInfoService;
import com.anolesoft.amljmes.fortysix.service.mapper.MesBzzZcbldInfoServiceMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MesBzzZcbldInfoServiceImpl implements MesBzzZcbldInfoService {
    @Autowired
    MesBzzZcbldInfoServiceMapper mesBzzZcbldInfoServiceMapper;

    @Override
    public List<MesBzzZcbldDto> queryMesBzzZcbldInfo(MesBzzZcbldInfoController.DemoVO demoVO) {
        List<MesBzzZcbldDto> mesBzzZcbldDtos=mesBzzZcbldInfoServiceMapper.queryMesBzzZcbldSQL(demoVO);
        return mesBzzZcbldDtos;
    }

    @Override
    public List<MesBzzBindDto> queryPtdBind(String supportingOrderNo) {
        List<MesBzzBindDto> queryPtdBind=mesBzzZcbldInfoServiceMapper.queryPtdBind(supportingOrderNo);
        return queryPtdBind;
    }

//    @Override
//    public int updateBindYjdh(String supportingOrderNos) {
//        return mesBzzZcbldInfoServiceMapper.updateBindYjdh(supportingOrderNos);
//    }
//
//    @Override
//    public int updateBindBjdh(String supportingOrderNos) {
//        return mesBzzZcbldInfoServiceMapper.updateBindBjdh(supportingOrderNos);
//    }

    @Override
    public int updatePtdStateZc(String supportingOrderNos) {
        return mesBzzZcbldInfoServiceMapper.updatePtdStateZc(supportingOrderNos);
    }

    @Override
    public int updateBindStateZc(String supportingOrderNos,String objuid) {
        return mesBzzZcbldInfoServiceMapper.updateBindStateZc(supportingOrderNos,objuid);
    }

    @Override
    public int updateBindStateBj(String supportingOrderNos) {
        return mesBzzZcbldInfoServiceMapper.updateBindStateBj(supportingOrderNos);
    }

    @Override
    public List<MesBzzBindDto> queryPtdmxQjs(String peitaodanhao) {
        List<MesBzzBindDto> queryPtdmxQjs=mesBzzZcbldInfoServiceMapper.queryPtdmxQjs(peitaodanhao);
        return queryPtdmxQjs;
    }

    @Override
    public int addMesBzzZcbld(MesBzzZcbldDto inFoDtoParam) {
        int count = mesBzzZcbldInfoServiceMapper.addMesBzzZcbld(inFoDtoParam);
        return count;
    }
}
